package com.platform.common;

import com.google.common.collect.Sets;

import java.util.Set;

/**
 * Created by geely
 */
public class Const {

    public static final String CURRENT_USER = "currentUser";

    public static final String EMAIL = "email";
    public static final String USERNAME = "username";
    public static final String PHONE = "phone";
    public static final Integer DEFAULTVERSION = 1;
    public static final String REQUESTURL = "http://localhost:9091";//请求端口

    public static final String SESSIONVCODE ="sessionVCode";//验证码

    public interface ProductListOrderBy{
        Set<String> PRICE_ASC_DESC = Sets.newHashSet("price_desc","price_asc");
    }

    public interface RequestNums{
        int MAXREQUESTMESSAGE = 50;//请求短信数
    }

    public interface CodeType{
        String PCLOGINSTRCODE = "pcLoginStrCode";//电脑端网页验证码
        String APPLOGINSTRCODE = "appLoginStrCode";//移动网页验证码
        String MAILSERVERCODE = "mailServerCode";//邮寄申请验证码
        String PHONECODE = "phoneCode";//手机短信验证码
        String NOCODE = "nocode";//没有验证码
    }

    public interface Role{
        int ROLE_CUSTOMER = 0; //普通用户
        int ROLE_ADMIN = 1;//管理员
    }

    public interface Psac0001Status{
        int DISABLE = 0;//禁用
        int TAKEEFFECT = 1;//生效
        int PRESERVATION = 2;//已保存
        int BLACK = 3;//黑名单
        int REJECT = 4;//驳回
    }

    public interface Msg{
        String SAVESUCCESS = "保存成功";
        String UPDATESUCCESS = "更新成功";
        String DELSUCCESS = "删除成功";
        String SELECTSUCCESS = "查询成功";
        String SAVEERROR = "保存失败";
        String UPDATEERROR= "更新失败";
        String DELERROR = "删除失败";
        String SELECTERROR = "查询失败";
        String NOACCESS = "无访问权限";
        String USERNOLOGIN = "未登录用户";
        String PARAMTERERROR = "参数错误";
        String DATAISUPDATE = "数据被更新，请刷新后重试！";
        String FILEFORMATERROR = "文件格式错误";
        String IMPORTSUCCESS = "导入成功";
        String FILEUPLOADSUCCESS = "附件上传成功";
    }

    public interface PsacStatus{
        //1生效，2已保存，3黑名单,4:驳回
        Integer TAKEEFFECT = 1;
        Integer BEENSAVED = 2;
        Integer BLACKLIST = 3;
        Integer REJECT = 4;
    }

    public interface NoticeType{//消息通知类型
        Integer TIMELY = 1;//即时
        Integer INTERVAL = 2;//时间区间
    }

    public interface MessageStatus{//消息状态
        Integer TAKEEFFECT = 1;//生效
        Integer INVALID = 2;//失效
    }

    public interface  MessageContent{//消息内容
        String PSACTAKEEFFECT = "您的账号注册信息已审核通过";
        String PSACREJECT = "您的账户注册信息被驳回，请修改后重新提交";
    }
}
